package com.example.user.service;


import com.example.model.check_in.PasswordDo;
import com.example.model.user.User;
import com.example.user.domain.LoginUser;

import java.util.List;

public interface UserService {

    int delete(Long id);

    int insert(User record);

    User get(Long id);

    User getByUserName(String userName);

    List<User> list(User user);

    int update(User record);

    int insertUserRole(User user);

    String getUserRoleGroup(String userName);

    String getUserRoleGroup(User user);

    int resetPassword(User user);

    //重置全部密码
    int resetAllPasswords();

    int updatePassword(PasswordDo passwordDo, LoginUser loginUser);
}
